home *** CD-ROM | disk | FTP | other *** search
- on MouseClick maLettre
- global gNumSpr, g1erSprLoc, gBoutons, gEtudAct, gEtatEtud, gPartie, gCDpath, gSujet0, gSujet1, gSurvolPrec, gListPart, gListCod, gMessDef1, gMessDef2, gMessSty1, gMessSty2, gMol, gTraduit, gScopeSu, gPosVideo, gPosDebP, gPosDebS, gPosDebE, gPosFin
- if maLettre = "T" then
- if gEtatEtud = " " then
- gBoutons(habille, g1erSprLoc + 12, "BTGMOL 0")
- set gMol to 0
- repeat with i = g1erSprLoc + 10 to g1erSprLoc + 12
- set the visible of sprite i to 1
- end repeat
- set gPosVideo to 0
- gScopeSu(Restore)
- set en_lecture to 0
- else
- if gEtatEtud = "T" then
- set oldNumSpr to g1erSprLoc + 9
- else
- if gEtatEtud = "C" then
- set oldNumSpr to g1erSprLoc + 8
- else
- if gEtatEtud = "S" then
- set oldNumSpr to g1erSprLoc + 7
- else
- if gEtatEtud = "B" then
- set oldNumSpr to g1erSprLoc + 6
- else
- alert("gEtatEtud=" & gEtatEtud)
- end if
- end if
- end if
- end if
- gBoutons(relache, oldNumSpr)
- gBoutons(appuie, gNumSpr)
- if gScopeSu(GetCadence) = 1 then
- set en_lecture to 1
- gScopeSu(SetCadence, 0)
- else
- set en_lecture to 0
- end if
- set maPos to gScopeSu(GetTime, 1)
- set gPosVideo to gScopeSu(GetTime, 1) - gPosDebE - gPosDebS - gPosDebP
- end if
- set gEtatEtud to maLettre
- set gPartie to maLettre
- set gPosDebS to (getPos(gListCod, gSujet0(Le_Code)) - 1) * 300 * 4
- set gPosDebP to (getPos(gListPart, gPartie) - 1) * 300
- set gPosFin to gPosDebE + gPosDebS + gPosDebP + 239
- gScopeSu(Box, 20, 92, 280, 256)
- gScopeSu(SetTime, gPosDebE + gPosDebS + gPosDebP + gPosVideo)
- gScopeSu(visible, 1)
- if en_lecture = 1 then
- gScopeSu(SetCadence, 1)
- end if
- set gSurvolPrec to -1
- set gMessDef1 to getAt(gTraduit, 38)
- set gMessDef2 to " "
- else
- gBoutons(relache, gNumSpr)
- beep()
- set gSurvolPrec to -1
- end if
- end
-
- on mouseDown
- global gNumSpr, g1erSprLoc, gBoutons
- set gNumSpr to -2
- repeat with i = g1erSprLoc + 6 to g1erSprLoc + 9
- if rollOver(i) then
- set gNumSpr to i
- exit repeat
- end if
- end repeat
- if gNumSpr > 0 then
- gBoutons(appuie, gNumSpr)
- end if
- end
-
- on mouseUp
- global gNumSpr, g1erSprLoc, gBoutons, gEtudAct, gEtatEtud, gPartie, gCDpath, gSujet0, gSujet1, exitFrame, gSurvolPrec, gMessDef1, gMessDef2, gMessSty1, gMessSty2, gSprVideo1
- curseur(1)
- set monNumSpr to -2
- repeat with i = g1erSprLoc + 6 to g1erSprLoc + 9
- if rollOver(i) then
- set monNumSpr to i
- exit repeat
- end if
- end repeat
- if (monNumSpr = gNumSpr) and (monNumSpr > 0) then
- MouseClick(char 3 of the name of cast the castNum of sprite gNumSpr)
- else
- gBoutons(relache, gNumSpr)
- end if
- curseur(-1)
- end
-